<template>
  <div>
    <h1>ToDoList</h1>
    <div class="todoList">
      <todo-head></todo-head>
      <todo-list></todo-list>
      <todo-footer></todo-footer>
    </div>
  </div>
</template>

<script>
import TodoHead from "./components/TodoHead.vue";
import TodoList from "./components/TodoList.vue";
import TodoFooter from "./components/TodoFooter.vue";
export default {
  components: {
    TodoHead,
    TodoList,
    TodoFooter,
  },
};
</script>

<style lang="scss">
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border-radius: 5px;
}

li {
  list-style: none;
}

body {
  color: #333;
  font-size: 14px;
  font-family: "Times New Roman", "sans-serif", 宋体, 楷体;
}
input,
button {
  outline: none;
}
h1 {
  font-size: 23px;
  text-align: center;
}
.todoList {
  width: 80%;
  margin: 30px auto;
  border: 2px solid #ddd;
  padding: 10px;
}
button {
  border: 0;
  background: rgb(223, 6, 6);
  color: #fff;
  font-size: 12px;
  padding: 0 10px;
  height: 80%;
  box-shadow: 0 3px 2px 0px rgb(204, 1, 1);
  cursor: pointer;
}
input[type="checkbox"] {
  position: relative;
  width: 14px;
  height: 14px;
  margin: 0 5px;
  appearance: none;
  background: wheat;
  border-radius: 50%;
  &:checked::before {
    content: "";
    background: orange;
    position: absolute;
    top: 25%;
    left: 25%;
    width: 50%;
    height: 50%;
    border-radius: 50%;
    border: 0;
  }
}
</style>